package com.tomvian.tools.functions 
{
	/**
	 * shuffleArray
	 * @author Tom Vian
	 */
	public function shuffleArray(array:Array):Array
	{
		var array2:Array = array.concat();
		var array3:Array = [];
		
		while (array2.length > 0) array3.push(array2.splice(int(Math.random() * array2.length), 1)[0]);
		
		return array3;
	}
}